<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="string" uri="http://jakarta.apache.org/taglibs/string-1.1" %>
<%@ taglib uri="/WEB-INF/tlds/pagination.tld" prefix="pagination" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Bettersoft Portal</title>
    <link href="/common/css/indexStyle.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="/common/js/common.js"></script>
    <script type='text/javascript' src="/common/dwr/engine.js"></script>
    <script type='text/javascript' src="/common/dwr/util.js"></script>
    <script type='text/javascript' src='/dwr/interface/BettersoftPortalService.js'></script>

    <script type="text/javascript">

        // Locale 설정을 바꾼다.
        function jsChangeLocale(lan) {
            var TheForm = document.menuFrm;
            TheForm.nextTarget.value = "intro";
            TheForm.action = "${pageContext.request.contextPath}/changeLocale.do?language=" + lan;
            TheForm.submit();
        }

        // Locale 설정을 바꾼다.
        function jsSendEmail() {
            var TheForm = document.frm;

            if(trim(TheForm.name.value) == "") {
                alert('이름을 입력하세요.');
                TheForm.name.focus();

            }else if(trim(TheForm.phoneNumber.value) == "") {
                alert('연락처를 입력하세요.');
                TheForm.phoneNumber.focus();

            }else if(trim(TheForm.content.value) == "") {
                alert('내용을 입력하세요.');
                TheForm.content.focus();
            }else{
                alert('문의가 접수되었습니다.');
                TheForm.action = "sendEmail.do";
                TheForm.submit();

            }
        }


    </script>
</head>
<body>
<!------------------------------ top 시작-------------------------------------->
<%@include file="header.jsp" %>
<!------------------------------ top 끝-------------------------------------->
<form name="frm" method="POST" onkeypress="if(event.keyCode == 13) {return false;}" >
    <div id="wrap">
        <table>
            <tr>
                <td style="width: 30%">
                    <b>문의하기</b>
                </td>
                <td style="width: 30%">
                    +82-10-9885-1577 (MOBILE)<br>
                    +82-2-3775-3799 (TEL)<br>
                    +82-2-3775-2798 (FAX)
                </td>
                <td style="width: 30%">
                    good@bettersoft.co.kr
                </td>
            </tr>
        </table>
        <div style="background-color: yellow;">
            <b>제품에 대한 궁금한 점이나 구매 및 업무 제휴</b>
        </div>
        <div>
            이름 <input type="text" name="name"> 연락처 <input type="text" name="phoneNumber"><br>
            내용<br>
            <textarea rows="10" cols="30" name="content"></textarea><br>
            <button type="button" onclick="jsSendEmail()">문의하기</button>
        </div>
    </div>
</form>
<!------------------------------ 하단 Import 시작-------------------------------------->
<%@include file="footer.jsp" %>
<!------------------------------ 하단 Import 끝-------------------------------------->
</body>
</html>